Debugging and Tracing Your Application
The Sentinel RMS licensing library has been written to intercept and log two different levels of events.
>SNTL_ATTR_CONFIG_TRACE_FUNCTION
>SNTL_ATTR_CONFIG_TRACE_ERROR
You can activate one of these levels by inserting a call to SNTL_ATTR_CONFIG_TRACE_LEVEL somewhere in the client code. The trace level will not be set until the function is called, making it possible to limit logging to certain portions of the client code only. Ensure to set the client trace writer file name to receive the output.
NOTE You can also guide your customers to enable License Manager tracing. See Configuring the License Manager Tracing Operations.
Custom error handlers can also be registered with sntl_licensing_register_callback API, by setting the type to SNTL_CALLBACK_TYPE_CUSTOM_TRACE_WRITER. Each error condition handler must be explicitly registered.